package com.chixing.controller;

import com.chixing.service.RequestMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class RequestMessageController {
    @Autowired
    private RequestMessageService requestMessageService;
    @GetMapping("pushMessage")
    @ResponseBody
    public String pushMessageByCustId(Integer custId){
        requestMessageService.sendMessageByRoom(custId);
        return "ok";
    }
}
